home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / cdev / lockdisk.sit / LockDisk Documentation next >
Text File  |  1989-07-19  |  2KB  |  34 lines

  1. LockDisk 1.0
  2. Brian Bechtel
  3.  
  4. LockDisk is a CDev (control panel device) that changes your system disk (the one from which you boot your Macintosh) to read-only status. This can be handy in many ways:
  5.  
  6. Ñ    CD-ROM discs are read-only.  You can test such things as Hypercard stacks to make sure that they run on read-only media. 
  7.  
  8. Ñ    You can╒t get a virus infection on a read-only disk.
  9.  
  10. Ñ    Kids can╒t (logically) destroy your hard disk.  No promises on physical efforts...
  11.  
  12. Ñ    Trade shows.
  13.  
  14. LockDisk cheats and goes behind the Finder╒s back.  Use it with a certain sense of caution.  Poorly written programs get very upset if they are run on a read-only disk.   They can crash.
  15.  
  16. When you are booting your system, LockDisk looks for a file named
  17.      file used by LockDisk cdev/init
  18. in the System Folder.  If this file exists, your system disk is locked.  If the file doesn╒t exist, nothing happens.  
  19.  
  20. To change the behavior,  open up the control panel and choose LockDisk.  If you select ╥Lock╙, the file mentioned above is created, and your system disk is locked.  If you select ╥Unlock╙, the file is deleted and the system disk is unlocked.  This happens immediately;  you don╒t have to reboot to have it take effect.
  21.  
  22. Technoweenie explanation of what╒s going on:  LockDisk sets the vcbAtrb flag that indicates that the disk in question is hardware locked.    Why don╒t we allow you to lock & unlock other volumes?  Because the INIT can╒t handle it;  at INIT time, only the system disk has been mounted, so it╒s the only disk we can see.
  23.  
  24. The Finder may not notice that the status of the disk has changed until you do something like a ╥Get Info╙ on the disk. 
  25.  
  26. Questions, comments, etc. should be directed electronically to:
  27.   blob@apple.com   on Internet. (preferred)
  28.   BECHTEL1            on AppleLink. 
  29.  
  30. Don╒t call me, I╒ll call you.  This is not an Apple product, and Apple doesn╒t know or care about this program.  Leave them out of this.
  31.  
  32.  
  33. In the future (not implemented yet):  support disks other than the system disk, even though the lock will only be in effect until you reboot.
  34.